/* ============ 评分容器 ============ */

.rating-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-wrapper.rating-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.rating-wrapper.rating-readonly {
    pointer-events: none;
}

/* ============ 评分容器 ============ */

.rating-container {
    display: flex;
    gap: 4px;
}

/* ============ 星星 ============ */

.rating-star {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.rating-star-icon {
    display: inline-block;
    font-size: 24px;
    color: #d9d9d9;
    transition: var(--transition);
}

.rating-star.active .rating-star-icon {
    color: #FFB800;
}

.rating-star.half .rating-star-icon {
    background: linear-gradient(90deg, #FFB800 50%, #d9d9d9 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-star:hover .rating-star-icon {
    color: #FFB800;
    transform: scale(1.1);
}

/* ============ 评分值 ============ */

.rating-value {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 30px;
    text-align: center;
}

/* ============ 大小 ============ */

.rating-small .rating-star-icon {
    font-size: 16px;
}

.rating-small .rating-value {
    font-size: 12px;
}

.rating-medium .rating-star-icon {
    font-size: 24px;
}

.rating-medium .rating-value {
    font-size: 14px;
}

.rating-large .rating-star-icon {
    font-size: 32px;
}

.rating-large .rating-value {
    font-size: 16px;
}

/* ============ 响应式 ============ */

@media (max-width: 768px) {
    .rating-wrapper {
        gap: 8px;
    }

    .rating-container {
        gap: 2px;
    }

    .rating-medium .rating-star-icon {
        font-size: 20px;
    }

    .rating-large .rating-star-icon {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .rating-wrapper {
        gap: 6px;
    }

    .rating-container {
        gap: 2px;
    }

    .rating-small .rating-star-icon {
        font-size: 14px;
    }

    .rating-medium .rating-star-icon {
        font-size: 18px;
    }

    .rating-large .rating-star-icon {
        font-size: 24px;
    }
}
